<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">市场营销活动综合决策依据</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline">
     <p>您所查看的综合决策依据如下：</p>
    <p>{$juece} </p>
    <p class="text-right font-bold">金额单位：人民币元</p>
      <table class="table row-margin-top table-bordered bud_hei">
          <tr>
            <td class="text-center" rowspan="4">费用预算</td>
            <td class="text-center info">考核期</td>
            {volist name="kaoheqi" id="k"}
              <td class="text-center info">{$k.ctitle}年({$k.ktitle})</td>
            {/volist}

            <td class="text-center info">总计</td>
          </tr>
          <tr class="text-right">
            <td class="text-left">费用预算</td>
            {volist name="ysshuju" id="ys"}
            {if $ys==0}
            <td>-</td>
            {elseif $ys>0/}
            <td class="num2">{$ys}</td>
            {else/}
            <td class="num2 colorRed">{$ys}</td>
            {/if}
            {/volist}
            {if $yszong==0}
            <td>-</td>
            {elseif $yszong>0/}
            <td class="num2">{$yszong}</td>
            {else/}
            <td class="num2 colorRed">{$yszong}</td>
            {/if}
          </tr>
          <tr class="text-right">
            <td class="text-left">实际申请</td>
            {volist name="sjshuju" id="ys"}
            <td class="num2">{$ys}</td>
            {/volist}
            <td class="num2">{$sjzong}</td>
          </tr>
           <tr class="text-right">
            <td class="text-left">差异</td>
           {volist name="heji" id="ys"}
            {if $ys>=0}
            <td class="num2">{$ys}</td>
            {else/}
            <td class="colorRed num2">{$ys}</td>
            {/if}
            {/volist}
            {if $hezong>=0}
            <td class="num2">{$hezong}</td>
            {else/}
            <td class="colorRed num2">{$hezong}</td>
            {/if}
          </tr>
      </table>
</form>
    </div>
    <!-- 全局js -->
    {include file="Public/footer"}
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript">
       $(".num2").each(function(){
                if(!isNaN(parseFloat($(this).html())))
                 var num=parseFloat($(this).html()).toFixed(2);
                else
                    var num="0.00";
                $(this).html(num);
            })
    </script>
</body>

</html>
